package com.cfh.springcloudfeignconsumer.fallback;

import com.cfh.domain.User;
import com.cfh.service.HelloService;

/**
 * @author chenfh
 * @date 2019/7/10
 */
public class HelloServiceFallback implements HelloService {
    @Override
    public String hello() {
        return "error";
    }

    @Override
    public String hello(String name) {
        return "error";
    }

    @Override
    public User hello(String name, Integer age) {
        return new User("error", -1);
    }

    @Override
    public String hello(User user) {
        return "error";
    }
}
